home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Freeware
/
Read It Later 0.9924
/
read_it_later-0.9924-fx.xpi
/
chrome
/
isreaditlater.jar
/
content
/
ISRILsidebar.js
< prev
next >
Wrap
Text File
|
2008-10-29
|
1KB
|
46 lines
var ISRIL, ISRILprefs, ISRILxul, ISRILsync, ISRILoffline, ISRILpr, ISRILinit, ISRILglobals;
function ISRILsidebar() {
}
ISRILsidebar.prototype = {
_init : function(mainWindow) {
ISRILsidebar.w = mainWindow;
var p = document.createElement('page');
document.getElementById('isRitL-sidebar-wrapper').appendChild( document.getElementById('isRitL-List-inner') );
document.getElementById('isRitL-List').setAttribute('id', '');
document.getElementById('isRitL-sidebar-wrapper').setAttribute('id', 'isRitL-List');
ISRIL = ISRILsidebar.w.ISRIL;
ISRILprefs = ISRILsidebar.w.ISRILprefs;
ISRILoffline = ISRILsidebar.w.ISRILoffline;
ISRILinit = ISRILsidebar.w.ISRILinit;
ISRILglobals = ISRILsidebar.w.ISRILglobals;
ISRILsidebar.loadScript('ISRILxul');
ISRILxul._init('sidebar');
ISRILxul.window = mainWindow;
ISRILsidebar.loadScript('ISRILpr');
ISRILpr.xul = ISRILxul;
ISRILsidebar.loadScript('ISRILsync');
ISRILsync._init('sidebar');
ISRILxul.OpenReadingList();
},
loadScript : function(jsFile) {
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Components.interfaces.mozIJSSubScriptLoader)
.loadSubScript("chrome://isreaditlater/content/"+jsFile+".js");
},
}
var ISRILsidebar = new ISRILsidebar();